/**
 * @author 阿恩
 * @date 2021/3/1016:38
 *
 *
 *
 * 20210310    zaq    配置表ASP_USER的model文件
 * 20210517    zaq    新增code,note属性，方便后续调用
 */

package com.example.zaq.model;


import lombok.Data;

import java.io.Serializable;

/**
 * asp_user
 * @author 
 */
@Data
public class AspUser implements Serializable {
    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;
    /**
     * 用户ID，由系统生成
     */
    private Integer uId;

    /**
     * 登录标识，不允许重复
     */
    private String uLogin;

    /**
     * 用户昵称
     */
    private String uName;

    /**
     * 登录密码
     */
    private String uPwd;

    /**
     * 星球名字
     */
    private String uPlanet;

    /**
     * 用户创建日期，不可更改
     */
    private Integer uCreatedate;

    private Integer uBirthday;

    /**
     * 性别
     */
    private Object uSex;

    /**
     * 个性签名
     */
    private String uStatus;

    /**
     * 系统管理员
     */
    private Boolean uAdmin;
    /**
     * 删除标志，1表示已删除
     */
    private Boolean delete;

    public Boolean getuAdmin() {
        return uAdmin;
    }

    public void setuAdmin(Boolean uAdmin) {
        this.uAdmin = uAdmin;
    }

    private static final long serialVersionUID = 1L;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspUser other = (AspUser) that;
        return (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
            && (this.getuLogin() == null ? other.getuLogin() == null : this.getuLogin().equals(other.getuLogin()))
            && (this.getuName() == null ? other.getuName() == null : this.getuName().equals(other.getuName()))
            && (this.getuPwd() == null ? other.getuPwd() == null : this.getuPwd().equals(other.getuPwd()))
            && (this.getuPlanet() == null ? other.getuPlanet() == null : this.getuPlanet().equals(other.getuPlanet()))
            && (this.getuCreatedate() == null ? other.getuCreatedate() == null : this.getuCreatedate().equals(other.getuCreatedate()))
            && (this.getuBirthday() == null ? other.getuBirthday() == null : this.getuBirthday().equals(other.getuBirthday()))
            && (this.getuSex() == null ? other.getuSex() == null : this.getuSex().equals(other.getuSex()))
            && (this.getuStatus() == null ? other.getuStatus() == null : this.getuStatus().equals(other.getuStatus()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
        result = prime * result + ((getuLogin() == null) ? 0 : getuLogin().hashCode());
        result = prime * result + ((getuName() == null) ? 0 : getuName().hashCode());
        result = prime * result + ((getuPwd() == null) ? 0 : getuPwd().hashCode());
        result = prime * result + ((getuPlanet() == null) ? 0 : getuPlanet().hashCode());
        result = prime * result + ((getuCreatedate() == null) ? 0 : getuCreatedate().hashCode());
        result = prime * result + ((getuBirthday() == null) ? 0 : getuBirthday().hashCode());
        result = prime * result + ((getuSex() == null) ? 0 : getuSex().hashCode());
        result = prime * result + ((getuStatus() == null) ? 0 : getuStatus().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "AspUser{" +
                "note='" + note + '\'' +
                ", code=" + code +
                ", uId=" + uId +
                ", uLogin='" + uLogin + '\'' +
                ", uName='" + uName + '\'' +
                ", uPwd='" + uPwd + '\'' +
                ", uPlanet='" + uPlanet + '\'' +
                ", uCreatedate=" + uCreatedate +
                ", uBirthday=" + uBirthday +
                ", uSex=" + uSex +
                ", uStatus='" + uStatus + '\'' +
                ", uAdmin=" + uAdmin +
                ", delete=" + delete +
                '}';
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getuLogin() {
        return uLogin;
    }

    public void setuLogin(String uLogin) {
        this.uLogin = uLogin;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public String getuPwd() {
        return uPwd;
    }

    public void setuPwd(String uPwd) {
        this.uPwd = uPwd;
    }

    public String getuPlanet() {
        return uPlanet;
    }

    public void setuPlanet(String uPlanet) {
        this.uPlanet = uPlanet;
    }

    public Integer getuCreatedate() {
        return uCreatedate;
    }

    public void setuCreatedate(Integer uCreatedate) {
        this.uCreatedate = uCreatedate;
    }

    public Integer getuBirthday() {
        return uBirthday;
    }

    public void setuBirthday(Integer uBirthday) {
        this.uBirthday = uBirthday;
    }

    public Object getuSex() {
        return uSex;
    }

    public void setuSex(Object uSex) {
        this.uSex = uSex;
    }

    public String getuStatus() {
        return uStatus;
    }

    public void setuStatus(String uStatus) {
        this.uStatus = uStatus;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
}